<script setup lang='ts'>
import { ref, reactive } from 'vue'
import setPx from '../../../utils/setPx';
const {style}=defineProps(['style'])
const message=ref('我是纯文本')
</script>

<template>
  <div class="text"   contentEditable="true"  :v-text="message" :style="setPx(style)">
    {{ message }}
  </div>
</template>

<style lang='scss' scoped>
.text{
  position: absolute;
}
</style>